package day3;

/**
 * @author oldliu
 * @since 1.0
 */
public class CatTest2 {
    public static void main(String[] args) {
        int i=100;
        int j=i;
        i=200;
        System.out.println("j="+j);
        Cat c=new Cat();//c是Cat的一个实例
        c.name="阿花";
        c.type="波斯猫";
        c.age=3;
        c.color="花白";
        Cat c2=c;
        System.out.println(c);
        System.out.println(c2);
        c2.age=15;
        System.out.println(">>>>>>>>>>>>>>>>>>");
        c.show();
        System.out.println("c2====");
        c2.show();
        System.out.println("c和c2是同一个?");
        System.out.println(c==c2);
        Cat c3=new Cat();
        c3.name="大黄";
        System.out.println("c和c3是同一个？");
        System.out.println(c==c3);
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>");
        c=new Cat();
        System.out.println(c==c2);
        c.show();
    }
}
